<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" xml:lang="en" lang="en">
<ui:composition template="/templates/mainTemplate.xhtml">
    <ui:define name="pageTitle">Create or Update A Studnt</ui:define>
    <ui:define name="body">
        <p:panel header="Admit a Studnt" style="width:100%">
        <h:panelGrid columns="4">
            <h:outputText value="Surname"/>
            <p:inputText size="50" value="#{studentBean.surName}"/>
            <h:outputText value="First Name"/>
            <p:inputText size="50" value="#{studentBean.firstName}"/>
            <h:outputText value="Last Name"/>
            <p:inputText size="50" value="#{studentBean.lastName}"/>
            <h:outputText value="Gender"/>
            <h:panelGroup>
                <p:inputText size="20" value="#{studentBean.gender}"/>
                <h:outputText value="DOB"/>
                <p:calendar size="10"/>
            </h:panelGroup>
            <h:outputText value="Father Name"/>
            <p:inputText size="50" value="#{studentBean.fatherName}"/>
            <h:outputText value="Mother Name"/>
            <p:inputText size="50" value="#{studentBean.motherName}"/>
            <h:outputText value="House Number"/>
            <p:inputText size="50"/>
            <h:outputText value="Village"/>
            <p:inputText size="50"/>
            <h:outputText value="Mandal"/>
            <p:inputText size="50"/>
            <h:outputText value="District"/>
            <p:inputText size="50"/>
            <h:outputText value="Post Code"/>
            <p:inputText size="50"/>
            <h:outputText value="Phone Number"/>
            <p:inputText size="50"/>
        </h:panelGrid>

        <div id="toolbar" align="right">
            <p:commandButton value="Save" action="#{studentBean.save}" ajax="false"/>
            <p:commandButton value="Recept" action="#{studentBean.receipt}" ajax="false"/>
            <p:commandButton value="Cancel"/>
        </div>

        </p:panel>
    </ui:define>
</ui:composition>
</html>